package com.mh.study.springcloud.controller;

import com.mh.study.springcloud.service.ResumeFeignClient;
import com.mh.study.springcloud.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @author MH
 * @since 2022-05-22
 */
@Slf4j
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;
    @Autowired
    private ResumeFeignClient resumeFeignClient;

    @GetMapping("/register")
    public String register() {
        return userService.register();
    }

    @GetMapping("/validate")
    public String validate() {
        return userService.validate();
    }

}
